package msu.ml.data.level2;

import java.util.*;

public class Volume
{
   private ArrayList<Sweep> sweeps;
   private Date time;

   public Volume()
   {
      this.sweeps = new ArrayList<Sweep>();
   }

   public void addSweep(Sweep value)
   {
      this.sweeps.add(value);
   }

   public Sweep getSweep(int i)
   {
      return this.sweeps.get(i);
   }

   public int numSweeps()
   {
      return this.sweeps.size();
   }

   public Date getTime()
   {
      return this.time;
   }

   public void setTime(int rawtime, int date)
   {
      long ldate = (long)date * 24 * 60 * 60 * 1000;
      setTime(new Date(rawtime + ldate));
   }

   public void setTime(Date time)
   {
      this.time = time;
   }
}
